﻿/*
 * AngularUnits
 * 
 * initial implementation : 20.11.2008
 *
 * Copyright (c) Adam Sida, asida@centrum.cz.
 * All rights reserved.
 * 
 * for license see Petra.Gis.License.txt
 */
using System;


namespace Petra.Gis.ReferenceSystemServices
{
  /// <summary>
  /// predefined angular units
  /// </summary>
  public static class AngularUnits
  {
    /// <summary>
    /// The angular degrees are PI/180 = 0.017453292519943295769236907684886 radians
    /// </summary>
    public static readonly AngularUnit Degrees = new AngularUnit(0.017453292519943295769236907684886, new Metadata("degree", "EPSG", 9102, "deg", String.Empty, "=pi/180 radians"));



    /// <summary>
    /// SI standard unit
    /// </summary>
    public static readonly AngularUnit Radian = new AngularUnit(1, new Metadata("radian", "EPSG", 9101, "rad", String.Empty, "SI standard unit."));



    /// <summary>
    /// Pi / 200 = 0.015707963267948966192313216916398 radians
    /// </summary>
    public static readonly AngularUnit Grad = new AngularUnit(0.015707963267948966192313216916398,  new Metadata("grad", "EPSG", 9105, "gr", String.Empty, "=pi/200 radians."));



    /// <summary>
    /// Pi / 200 = 0.015707963267948966192313216916398 radians
    /// </summary>		
    public static readonly AngularUnit Gon = new AngularUnit(0.015707963267948966192313216916398, new Metadata("gon", "EPSG", 9106, "g", String.Empty, "=pi/200 radians."));


  }
}
